package com.lagou.rpc.client.zookeeper;

import com.lagou.rpc.client.netty.LoadBalanceStrategy;
import com.lagou.rpc.common.converter.Converter;
import com.lagou.rpc.common.converter.FastJsonConverter;
import lombok.Data;


/**
 * ZookeeperConnectionConfig
 *
 * @author wlz
 * @date 2020/5/17
 */
@Data
public class ZookeeperConnectionConfig {

    /**
     * zookeeper主机地址
     */
    private String zookeeperHost;
    /**
     * 命名空间
     */
    private String namespace = "SIMPLE_RPC";
    /**
     * 工作线程数
     */
    private int workerThreadSize = 4;
    /**
     * 对象转换器
     */
    private Converter converter = new FastJsonConverter();
    /**
     * 负载均衡策略
     */
    private LoadBalanceStrategy loadBalanceStrategy = LoadBalanceStrategy.ROUND_ROBIN;
    /**
     * 请求等待超时
     */
    private long timeout = 5000;
}
